<!--
 * @Author: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @Date: 2023-10-16 08:41:01
 * @LastEditors: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @LastEditTime: 2023-10-23 15:09:27
 * @FilePath: \uni-preset-vue-vite-ts\src\components\Header.vue
 * @Description: 
 * qq1908552310
-->
<template>
	<div class="header_contianer">
		<view class="box-bg">
			<uni-nav-bar height="110px" :border="false" backgroundColor="rgba(27, 169, 186)" left-icon="left"
				:title="props.title" @clickLeft="back" color="#fff" />
		</view>
	</div>
</template>

<script setup lang="ts">
import {
	defineProps,
} from "vue"
const props = defineProps({
	title: {
		default: "标题",
		type: String
	}
})

const back = () => {
	uni.navigateBack({
		delta: 1
	})
}
</script>

<style lang="scss" scoped>
.header_contianer {
	width: 100%;
}
</style>